import { Injectable } from "@angular/core";
import { Product } from "./Product";

@Injectable({
  providedIn: 'root'
})
export class ProductService {
  getProducts(): Array<Product> {
    let products: Array<Product> = []
    products.push(new Product(1, "电脑", "111111", 123))
    products.push(new Product(2, "手机", "222222", 456))
    products.push(new Product(3, "平板", "333333", 789))
    return products;
  }
}